﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
using System.IO;

namespace ASB.CC.EmailService
{
    class Utility
    {
        public static string GetTemplateFile(string name)
        {
            string path = Path.Combine(new FileInfo(Assembly.GetExecutingAssembly().Location).DirectoryName, "Template");
            path = Path.Combine(path, name);
            if (!File.Exists(path))
                throw new FileNotFoundException(path);
            return path;
        }
    }
}
